<?php
class fw_Session{
	
	public function fw_Session(){
		if (!session_id()) session_start();
	}
	
	function setSession($key,$value){
		$_SESSION[$key] = $value;
	}
	
	public function getSession($key){
		if(!empty($_SESSION[$key])){
			return $_SESSION[$key];
		}else return null;
		
	}
	
	public function isSession($key){
		if(isset($_SESSION[$key])&&!empty($_SESSION[$key])){
			return true;
		}else return false;
	}
}